﻿using Newtonsoft.Json;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    ///  委外检测流程  主表
    /// </summary>
    [SugarTable("OutsourceCheckHeader")]
    public class OutsourceCheckHeader : BaseHead
    {
        /// <summary>
        /// 地区
        /// </summary>
        public string Area { get; set; }

        /// <summary>
        /// 组织
        /// </summary>
        public string Organization { get; set; }

        /// <summary>
        /// 业务组织
        /// </summary>
        public string BusinessOrg { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public string Department { get; set; }

        /// <summary>
        /// IC依赖书编码
        /// </summary>
        public string ICYLSNo { get; set; }

        /// <summary>
        /// 是否指定检测机构
        /// </summary>
        public string IsInstitution { get; set; }

        /// <summary>
        /// 指定理由
        /// </summary>
        public string AppointReason { get; set; }

        /// <summary>
        /// 客户类型
        /// </summary>
        public string CustomerType { get; set; }

        /// <summary>
        /// 委托人
        /// </summary>
        public string AssignorName { get; set; }

        /// <summary>
        /// 客户编号
        /// </summary>
        public string CustomerNo { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 成本中心
        /// </summary>
        public string CostCentre { get; set; }

        /// <summary>
        /// 成本中心名称
        /// </summary>
        public string CostCentreName { get; set; }

        /// <summary>
        /// 共享中心人员
        /// </summary>
        public string GxzxName { get; set; }

        /// <summary>
        /// 大客户经理
        /// </summary>
        public string DkhjlName { get; set; }

        /// <summary>
        /// 技术经理
        /// </summary>
        public string JsjlName { get; set; }

        /// <summary>
        /// 销售总监
        /// </summary>
        public string XszjName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 完成日期
        /// </summary>
        public string FinishTime { get; set; }

        /// <summary>
        /// 发票接收人
        /// </summary>
        public string InvoicepersonName { get; set; }

        /// <summary>
        /// 发票邮寄地址
        /// </summary>
        public string MailingAddress { get; set; }

        /// <summary>
        /// 是否收到发票
        /// </summary>
        public string IsReceivedInvoice { get; set; }

        /// <summary>
        /// 是否金额一致
        /// </summary>
        public string IsConsistentAmount { get; set; }

        /// <summary>
        /// 是否上传发票
        /// </summary>
        public string Isscfp { get; set; }

        /// <summary>
        /// 原因
        /// </summary>
        public string ScfpReason { get; set; }

        /// <summary>
        /// 是否已报销
        /// </summary>
        public string Isybx { get; set; }

        /// <summary>
        /// 报销单据号
        /// </summary>
        public string BxNo { get; set; }

        /// <summary>
        ///  行数据
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<OutsourceCheckDetail> LineData { get; set; }
    }
}
